﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>电影系统</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">


    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>

</head>
  
   <body>
   <div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 选择电影名称</strong></div>
  <div class="body-content">
    <form method="get" class="form-x" th:action="@{/sale/saleControllerHall}">
      <table style="font-size: 12px;">
    	 <tr>
    	 <td style="text-indent: 100px;">
    	 	电影名称&nbsp;：&nbsp;
    	 </td>
     	<td>
            <select name="fid" id="sale-select">
      		</select>  
     	</td>
     </tr>
    </table>
    <br/>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 下一步</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
<script>

    $(function(){
        $.get("../gson/fimlGson",{
          fflag:1
        },function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                if (n.fflag == 1){
                    gsonText += '<option value="'+n.fid+'">'+n.fname+'</option>';
                }
            });
            $("#sale-select").append(gsonText);
        });
    });
</script>
</html>

